//
import { default as request, cloud } from '@/framework/utils/request'
export default ({
  queryTree(params) {
    return request({
      url: cloud.dqbasic + '/applicantPartyFlow/queryTree',
      method: 'get',
      params
    })
  },
  page(params) {
    return request({
      url: cloud.dqbasic + '/applicantPartyFlow/page',
      method: 'get',
      params
    })
  },
  detail(params) {
    return request({
      url: cloud.dqbasic + '/applicantPartyFlow/detail',
      method: 'get',
      params
    })
  },
  add(data) {
    return request({
      url: cloud.dqbasic + '/applicantPartyFlow/add',
      method: 'post',
      data
    })
  },

  enable(data) {
    return request({
      url: cloud.dqbasic + '/applicantPartyFlow/enable',
      method: 'post',
      data
    })
  },

  delete(data) {
    return request({
      url: cloud.dqbasic + '/applicantPartyFlow/delete',
      method: 'post',
      data
    })
  }

})
